package com.itheima.service.impl;

import com.itheima.dao.BookDao;
import com.itheima.dao.UserDao;
import com.itheima.service.BookService;

/**
 * @author: dh
 * @date: 2023-10-24 19:13
 */
public class BookServiceImpl implements BookService {

    private BookDao bookDao;

    private UserDao userDao;

    @Override
    public void save() {

        bookDao.save();
        userDao.save();
        System.out.println("book service save ...");
    }

    public void setBookDao(BookDao bookDao) {

        this.bookDao = bookDao;
    }

    public void setUserDao(UserDao userDao) {

        this.userDao = userDao;
    }
}
